//
//  RechargeViewController.m
//  DA_V
//
//  Created by 周季阳 on 15/4/27.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "RechargeViewController.h"
#import "InterFace.h"
#import "UIViewAdditions.h"

@interface RechargeViewController ()<UITextFieldDelegate>

@end

@implementation RechargeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [self colorWithHexString:@"#F5F5F5"];
    [self initNav];
    navTitle.text = @"充值";
    [self initUI];
}
#pragma mark - initUI
-(void)initUI{
    UIView *backgroundView = [[UIView alloc]initWithFrame:CGRectMake(0, navView.bottom, SCREEN_WIDTH, SCREEN_HEIGHT*0.5)];
    backgroundView.backgroundColor = [UIColor whiteColor];
    backgroundView.userInteractionEnabled = YES;
    [self.view addSubview:backgroundView];
    
    UIImageView *loginPwdBG = [[UIImageView alloc] initWithFrame:CGRectMake(20,60, SCREEN_WIDTH-40,  SCREEN_WIDTH*0.12)];
    // loginPwdBG.image = [UIImage imageNamed:@"updatepassword_03"];
    loginPwdBG.layer.borderColor = [UIColor grayColor].CGColor;
    loginPwdBG.layer.borderWidth = 0.5;
    loginPwdBG.backgroundColor = [self colorWithHexString:@"#FFFFFF"];
    loginPwdBG.userInteractionEnabled = YES;
    [backgroundView addSubview:loginPwdBG];
    
    
    UITextField *writePhoneNum = [[UITextField alloc] initWithFrame:CGRectMake(10, 0 ,loginPwdBG.frame.size.width-20 , SCREEN_WIDTH*0.12)];
    writePhoneNum.tag = 4;
    writePhoneNum.font = [UIFont systemFontOfSize:14];
    writePhoneNum.placeholder = @"充值金额";
    //writePhoneNum.backgroundColor= [UIColor whiteColor];
    [loginPwdBG addSubview:writePhoneNum];
    writePhoneNum.delegate = self;
    
    UIButton *leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    leftBtn.frame = CGRectMake(20, loginPwdBG.bottom+80, SCREEN_WIDTH/2-30, SCREEN_WIDTH*0.11);
    [leftBtn setBackgroundImage:[UIImage imageNamed:@"充值_07"] forState:UIControlStateNormal];
    [leftBtn addTarget:self action:@selector(updatePassword) forControlEvents:UIControlEventTouchUpInside];
    [backgroundView addSubview:leftBtn];
    
    
    UIButton *rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    rightBtn.frame = CGRectMake(leftBtn.right+20, loginPwdBG.bottom+80, SCREEN_WIDTH/2-30, SCREEN_WIDTH*0.11);
    [rightBtn setBackgroundImage:[UIImage imageNamed:@"充值_09"] forState:UIControlStateNormal];
    [rightBtn addTarget:self action:@selector(clickRightBtn) forControlEvents:UIControlEventTouchUpInside];
    [backgroundView addSubview:rightBtn];
    
    
}
#pragma mark - 返回
-(void)clickBackBtn{
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - 去支付
-(void)updatePassword{
    
}
#pragma mark - 取消
-(void)clickRightBtn{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
